package com.example.mvvm

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.example.mvvm.databinding.FragmentInflateBinding


class InflateFragment : Fragment() {
    private var binding: FragmentInflateBinding? = null


    override fun onCreateView(
        inflater: LayoutInflater, container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        binding= FragmentInflateBinding.inflate(inflater, container, false)

        binding!!.tvShow.text = getString(R.string.hello_blank_fragment)
        return binding?.root
    }

    override fun onDestroyView() {
        binding = null
        super.onDestroyView()
    }

}